package com.big_data.main.model.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 *
 * @TableName original_covid19_map_wangyi
 */
@TableName(value ="original_covid19_map_wangyi")
@Data
public class OriginalCovid19MapWangyi implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     *
     */
    @TableField(value = "address_name")
    private String addressName;

    /**
     *
     */
    @TableField(value = "address_name_en")
    private String addressNameEn;

    /**
     *
     */
    @TableField(value = "parent_address_id")
    private Integer parentAddressId;

    /**
     *
     */
    @TableField(value = "total_confirm")
    private Integer totalConfirm;

    /**
     *
     */
    @TableField(value = "total_dead")
    private Integer totalDead;

    /**
     *
     */
    @TableField(value = "total_heal")
    private Integer totalHeal;

    /**
     *
     */
    @TableField(value = "today_confirm")
    private Integer todayConfirm;

    /**
     *
     */
    @TableField(value = "today_dead")
    private Integer todayDead;

    /**
     *
     */
    @TableField(value = "today_heal")
    private Integer todayHeal;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OriginalCovid19MapWangyi other = (OriginalCovid19MapWangyi) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAddressName() == null ? other.getAddressName() == null : this.getAddressName().equals(other.getAddressName()))
            && (this.getAddressNameEn() == null ? other.getAddressNameEn() == null : this.getAddressNameEn().equals(other.getAddressNameEn()))
            && (this.getParentAddressId() == null ? other.getParentAddressId() == null : this.getParentAddressId().equals(other.getParentAddressId()))
            && (this.getTotalConfirm() == null ? other.getTotalConfirm() == null : this.getTotalConfirm().equals(other.getTotalConfirm()))
            && (this.getTotalDead() == null ? other.getTotalDead() == null : this.getTotalDead().equals(other.getTotalDead()))
            && (this.getTotalHeal() == null ? other.getTotalHeal() == null : this.getTotalHeal().equals(other.getTotalHeal()))
            && (this.getTodayConfirm() == null ? other.getTodayConfirm() == null : this.getTodayConfirm().equals(other.getTodayConfirm()))
            && (this.getTodayDead() == null ? other.getTodayDead() == null : this.getTodayDead().equals(other.getTodayDead()))
            && (this.getTodayHeal() == null ? other.getTodayHeal() == null : this.getTodayHeal().equals(other.getTodayHeal()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAddressName() == null) ? 0 : getAddressName().hashCode());
        result = prime * result + ((getAddressNameEn() == null) ? 0 : getAddressNameEn().hashCode());
        result = prime * result + ((getParentAddressId() == null) ? 0 : getParentAddressId().hashCode());
        result = prime * result + ((getTotalConfirm() == null) ? 0 : getTotalConfirm().hashCode());
        result = prime * result + ((getTotalDead() == null) ? 0 : getTotalDead().hashCode());
        result = prime * result + ((getTotalHeal() == null) ? 0 : getTotalHeal().hashCode());
        result = prime * result + ((getTodayConfirm() == null) ? 0 : getTodayConfirm().hashCode());
        result = prime * result + ((getTodayDead() == null) ? 0 : getTodayDead().hashCode());
        result = prime * result + ((getTodayHeal() == null) ? 0 : getTodayHeal().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", addressName=").append(addressName);
        sb.append(", addressNameEn=").append(addressNameEn);
        sb.append(", parentAddressId=").append(parentAddressId);
        sb.append(", totalConfirm=").append(totalConfirm);
        sb.append(", totalDead=").append(totalDead);
        sb.append(", totalHeal=").append(totalHeal);
        sb.append(", todayConfirm=").append(todayConfirm);
        sb.append(", todayDead=").append(todayDead);
        sb.append(", todayHeal=").append(todayHeal);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
